package com.wingscode.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wingscode.common.validator.group.AddGroup;
import com.wingscode.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 字典key
 *
 * @author yan
 */
@Data
@TableName("dictionary_key")
public class DictionaryKeyEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	private Integer Id;

	/**
	 * 名称
	 */
	@NotBlank(message="name不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String name;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 类型
	 */
	@NotBlank(message="type不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String type;
}
